package com.rimi.mapper;

import com.rimi.bean.News;
import com.rimi.commons.CommonResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liHaiYang
 * @version V1.0
 * @Description: (用一句话描述该文件做什么)
 * @date 2021/7/9 15:54
 */
public interface NewsMapper {
    int addNewsByUserId(@Param("newsId") Integer newsId, @Param("userId") Integer userId);

    int deleteNewsByNewsId(Integer newsId);

    List<News> showNewsByUserId(Integer userId);
}
